<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<title></title>
	<meta name="generator" content="LibreOffice 4.2.7.2 (Linux)">
	<meta name="author" content="Zoran Vučenović">
	<meta name="created" content="20100120;12052000">
	<meta name="changedby" content="Zoran ">
	<meta name="changed" content="20141224;174332214315218">
	<meta name="CHANGEDBY" content="Zoran ">
	<style type="text/css">
	<!--
		@page { margin: 2.01cm }
		p { margin-bottom: 0.2cm }
		h4.cjk { font-family: "WenQuanYi Micro Hei" }
		h4.ctl { font-family: "Mangal" }
		a.cjk:link { so-language: zxx }
		a.ctl:link { so-language: zxx }
	-->
	</style>
</head>
<body lang="en-GB" dir="ltr" style="background: transparent">
<p align="center" style="margin-bottom: 0cm"><font face="Arial, sans-serif"><font size="4" style="font-size: 16pt"><b>DateTimeControls
Package for Lazarus</b></font></font></p>
<p align="center" style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p align="center" style="margin-bottom: 0cm"><a class="western" href="http://wiki.lazarus.freepascal.org/ZVDateTimeControls_Package"><font face="Arial, sans-serif"><font size="3" style="font-size: 12pt"><span lang="en-GB"><span style="font-weight: normal">http://wiki.lazarus.freepascal.org/DateTimeControls_Package</span></span></font></font></a></p>
<p align="left" style="margin-bottom: 0cm"><br>
</p>
<p align="center" style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p align="left" style="margin-bottom: 0cm; font-weight: normal"><font face="Arial, sans-serif"><font size="4" style="font-size: 14pt">The
DateTimeControls package contains two controls:</font></font></p>
<p align="left" style="margin-bottom: 0cm"><br>
</p>
<p align="left" style="margin-left: 2.01cm; margin-bottom: 0cm"><img src="" name="grafika2" align="bottom" width="24" height="24" border="0"><a class="western" href="#TDateTimePicker">
</a><a class="western" href="#TDateTimePicker"><font face="Arial, sans-serif"><font size="3" style="font-size: 12pt"><span lang="en-GB"><span style="font-weight: normal">TDateTimePicker</span></span></font></font></a></p>
<p align="left" style="margin-left: 2.01cm; margin-bottom: 0cm"><br>
</p>
<p align="left" style="margin-left: 2.01cm; margin-bottom: 0cm"><img src="" name="grafika5" align="bottom" width="24" height="24" border="0"><a class="western" href="#TDBDateTimePicker">
</a><a class="western" href="#TDBDateTimePicker"><font face="Arial, sans-serif"><font size="3" style="font-size: 12pt"><span lang="en-GB"><span style="font-weight: normal">TDBDateTimePicker</span></span></font></font></a></p>
<p align="left" style="margin-bottom: 0cm"><br>
</p>
<p align="left" style="margin-bottom: 0cm"><font face="Arial, sans-serif"><b>Author</b></font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><a class="western" href="http://wiki.lazarus.freepascal.org/User:Zoran"><font face="Arial, sans-serif"><span lang="en-GB"><span style="font-weight: normal">Zoran
Vučenović</span></span></font></a></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-bottom: 0cm"><font face="Arial, sans-serif"><b>License</b></font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm; font-weight: normal">
<font face="Arial, sans-serif">Modified LGPL, same as Lazarus
component library.</font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p align="left" style="margin-bottom: 0cm"><font face="Arial, sans-serif"><b>Introduction</b></font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><font face="Arial, sans-serif"><span lang="en-GB">Delphi's
VCL has <a class="western" href="http://docwiki.embarcadero.com/VCL/en/ComCtrls.TDateTimePicker">a
control named TDateTimePicker</a>, which I find very useful for
editing dates. LCL, however, does not have this control. Instead, for
editing dates <a class="western" href="http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tdateedit.html">LCL
has a control named TDateEdit</a>, but I prefer the VCL's
TDateTimePicker.</span></font></p>
<p align="left" style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><font face="Arial, sans-serif">Therefore,
I tried to create a cross-platform Lazarus control which would
resemble VCL's TDateTimePicker as much as possible.</font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><font face="Arial, sans-serif"><span lang="en-GB">The
TDateTimePicker control does not use <a class="western" href="http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.aspx">native
Win control</a>. It descends from LCL's TCustomControl to be
cross-platform. It has been tested on Windows with win32/64 and qt
widgetsets, as well as on Linux with qt and gtk2 widgetsets.</span></font></p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-bottom: 0cm"><font face="Arial, sans-serif">Note
that the TDateTimePicker control does not descend from TEdit, so it
does not have unnecessary caret. The VCL's control doesn't have caret
either.</font></p>
<p style="margin-bottom: 0cm"><br>
</p>
<p style="margin-bottom: 0cm"><a name="TDateTimePicker"></a><font face="Arial, sans-serif"><b>TDateTimePicker
<img src="" name="grafika9" align="middle" width="24" height="24" border="0"></b></font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Properties:</b></font></p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">I'll explain some properties of
TDateTimePicker control: </font>
</p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>DateTime: TDateTime (public)</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">The DateTime value
displayed on the control. This property is not published in object
inspector, but its value is actually the same as Date and Time
properties composed in one value. This property is provided to allow
setting or reading of both date and time value at once in program
code. In design time, Date and Time can be set in object inspector.
<a class="western" href="#DateTimePicker Editor">There is also
component editor</a> which provides easy way of setting this property
in design time.</span></font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Date: TDate</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The date displayed on the control
which the user can edit.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Time: TTime</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The time displayed on the control
which the user can edit.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>MinDate: TDate</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The minimal date user can enter.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>MaxDate: TDate</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The maximal date user can enter.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm"><a name="NullInputAllowed"></a>
<font face="Arial, sans-serif"><b>NullInputAllowed: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When True, the user can set the date
to NullDate constant by pressing N key.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>CenturyFrom: Word</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When user enters the year in two-digit
format, then the CenturyFrom property is used to determine which
century the year belongs to. The default is 1941, which means that
when two digit years is entered, it falls in interval 1941 – 2040.
Note that MinDate and MaxDate properties can also have influence on
the decision – for example, if the CenturyFrom is set to 1941 and
MaxDate to 31. 12. 2010, if user enters year 23, it will be set to
1923, because it can’t be 2033, due to MaxDate limit.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm"><a name="Kind"></a>
<font face="Arial, sans-serif"><b>Kind: TDateTimeKind</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace"><b>type</b> TDateTimeKind =
(dtkDate, dtkTime, dtkDateTime);</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The control displays only date, only
time or both.</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<img src="" name="grafika4" align="bottom" width="332" height="40" border="0"></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>DateMode: TDTDateMode</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace"><b>type</b> TDTDateMode =
(dmComboBox, dmUpDown, dmNone);</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">When DateMode is
set to dmComboBox, there is a button on the right side of the
control. When user clicks the button, <a class="western" href="http://lazarus-ccr.sourceforge.net/docs/lcl/calendar/tcalendar.html">the
calendar control</a> is shown, allowing the user to pick the date.
When set to dmUpDown, then UpDown buttons are shown.</span></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">In my opinion the UpDown buttons
aren't really useful in this control, they are provided for
compatibility with Delphi's TDateTimePicker. Up and down keys can
always serve for same purpose, so can mouse wheel.</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">In the next picture the first
control's DateMode is set to dmComboBox and the second control's to
dmUpDown.</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<img src="" name="grafika1" align="bottom" width="151" height="72" border="0"></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">If DateMode is dmComboBox, when the
user clicks on the button a calendar drops down, allowing the user to
pick a date.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Note:</b> if Kind property is set
to dtkTime, the calendar control is pointless. Therefore, if DateMode
is dmComboBox, the UpDown is shown instead.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>ShowCheckBox: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When set, there is a check box on the
left side of the control. When unchecked, the display appears grayed
and user interaction with the date or time is not possible. (The
control is still enabled, though, only in sense that the check box
remains enabled).</font></p>
<p style="margin-left: 2.01cm"><img src="" name="grafika3" align="bottom" width="116" height="35" border="0"></p>
<p><br><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Checked: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">If ShowCheckBox is set to True, this
property determines whether the check box is checked or not. If
ShowCheckBox is False, this property has no purpose and is
automatically set to True.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>DateDisplayOrder: TDateDisplayOrder</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace"><b>type</b> TDateDisplayOrder =
(ddoDMY, ddoMDY, ddoYMD, ddoTryDefault);</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">Defines the order
for displaying day, month and year part of the date. When
ddoTryDefault is set, then the controls tries to determine the order
from <a class="western" href="http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/shortdateformat.html">ShortDateFormat
global variable</a>.</span></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">This is similar to
<a class="western" href="http://lazarus-ccr.sourceforge.net/docs/lcl/editbtn/tdateedit.dateorder.html">DateEdit's
DateOrder</a> property.</span></font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>DateSeparator: String</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">Defines the string used to separate
date, month and year date parts. Setting this property automatically
sets the UseDefaultSeparators property to False. To ensure that date
and time separators are set to user's system defaults, set
UseDefaultSeparators property to True.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>TimeSeparator: String</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">Defines the string used to separate
hour, minute, second and millisecond time parts. Setting this
property automatically sets the UseDefaultSeparators property to
False. To ensure that date and time separators are set to user's
system defaults, set UseDefaultSeparators property to True.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>UseDefaultSeparators: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">When this property
is set to True, then the DateSeparator and TimeSeparator properties
will be set to <a class="western" href="http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/dateseparator.html">DateSeparator</a>
and <a class="western" href="http://lazarus-ccr.sourceforge.net/docs/rtl/sysutils/timeseparator.html">TimeSeparator</a>
global variables, which are set to user system defaults when
application initializes.</span></font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>TrailingSeparator: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When set to True, then the
DateSeparator is shown once more, after the last date part. This
property exists because in some languages the correct date format is
<b>31. 1. 2010.</b> including the last point, after the year.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>LeadingZeros: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">Determines whether the date and time
parts are displayed with or without leading zeros (this actually
affects day, month and hour parts of date and time display).</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm"><a name="TimeDisplay"></a>
<font face="Arial, sans-serif"><b>TimeDisplay: TTimeDisplay</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><font face="Courier New, monospace"><b>type</b></font>
<font face="Courier New, monospace">TTimeDisplay = (tdHM, tdHMS,
tdHMSMs);</font></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">If Kind is dtkTime or dtkDateTime,
then TimeDisplay value of tdHM means that only hours and minutes are
displayed, tdHMS adds displaying of seconds and value of tdHMSMs
means that milliseconds are displayed too.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>TimeFormat: TTimeFormat</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace"><b>type</b> TTimeFormat = (tf12,
tf24);</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">The value of tf12 sets the display of
time to 12 hours format, with AM/PM string and tf24 sets to 24 hours
format.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm"><a name="TextForNullDate"></a>
<font face="Arial, sans-serif"><b>TextForNullDate: String</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">Text which appears
when the null date is set and control does not have focus. When
control is focused, the text changes to defined format, but
displaying zeros for date, and nines for time (for example
&quot;00/00/0000 99:99:99&quot;), which is appropriate to user input.
User can set the date to NullDate by pressing N key, provided
<a class="western" href="#NullInputAllowed">NullInputAllowed</a>
property is True.</span></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When TextForNullDate is set to empty
string, zeros/nines format is displayed even when control does not
have focus. If you want empty display, this can be achieved by
setting TextForNullDate to one or more space characters.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>AutoAdvance: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When true, then when user is entering
valid text, the selection automatically advances to next part of
date/time. The default is False because of compatibility with
previous version, but switching on this option makes user interaction
easier, this is a useful option and I recommend setting this property
to true.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Cascade: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When true, then when user is
increasing or decreasing one date/time part (using up-down keys or
mouse wheel), it can increase or decrease by one another date/time
part. For example, when date is 31.08.2013. and user increases the
day, the day becomes 1 and month increases by one and becomes 9, so
the date becomes 01.09.2013. If Cascade were set to False, the month
would not change and the date would become 01.08.2013.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>AutoButtonSize: Boolean</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">When true, the width of the arrow
button (or up-down control, if it is shown instead) is automatically
adjusted proportionally to the height.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>HideDateTimeParts: TDateTimeParts</b></font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace"><b>type</b></font></p>
<p style="margin-left: 2.49cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace">TDateTimePart = (dtpDay,
dtpMonth, dtpYear, dtpHour, dtpMinute, dtpSecond, dtpMiliSec,
dtpAMPM);</font></p>
<p style="margin-left: 2.49cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Courier New, monospace">TDateTimeParts = set of
dtpDay..dtpMiliSec;</font></p>
<p style="margin-left: 2.01cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB">Wit</span></font><font face="Arial, sans-serif"><span lang="en-GB"><span style="font-weight: normal">h
HideDateTimeParts prope</span></span></font><font face="Arial, sans-serif"><span lang="en-GB">rty,
you can chose which date/time parts will not be shown. Most of the
time you do not need to use this property and you can get the format
you want by using other properties (see <a class="western" href="#Kind">Kind</a>,
<a class="western" href="#TimeDisplay">TimeDisplay</a>). However, if
you need more control (for example, you might want to let user edit
only days, months and hours), you can additionally hide any date/time
parts with this control. Keep in mind that, with this property, you
cannot show any date/time part which is hidden by another property
(for example, if TimeDisplay is tdHM, the second part is not shown,
regardless of this property).</span></font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><a name="TDBDateTimePicker"></a>
<font face="Arial, sans-serif"><b>TDBDateTimePicker 
<img src="" name="grafika6" align="middle" width="24" height="24" border="0"></b></font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">TDBDateTimePicker is a data-aware
version of TDateTimePicker, with nice way of handling null database
values.</font></p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><br>
</p>
<h4 class="western" style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0.2cm">
<font face="Arial, sans-serif"><b>Displaying null values </b></font>
</h4>
<dd style="margin-left: 2cm; margin-bottom: 0.51cm"><font face="Arial, sans-serif">When
the underlying DB field has null value, then:</font></dd>
<ul>
	<ul><li><dd style="margin-bottom: 0.51cm">
		<font face="Arial, sans-serif">When the control gets focus, the
		text changes to defined format, but displaying zeros for date parts
		and nines for time parts (for example &quot;00/00/0000 99:99:99&quot;),
		which is appropriate to user input.</font></dd><li><dd style="margin-bottom: 0.51cm">
		<font face="Arial, sans-serif"><span lang="en-GB">When the control
		is not focused, then it displays the text defined in
		<a class="western" href="#TextForNullDate">TextForNullDate</a>
		property. The default is &quot;NULL&quot;.</span></font></dd></ul>
</ul>
<h4 class="western" style="margin-left: 1.47cm; margin-top: 0.18cm; margin-bottom: 0.2cm">
<font face="Arial, sans-serif">Setting the field value to null </font>
</h4>
<dd style="margin-left: 2cm; margin-bottom: 0.51cm"><font face="Arial, sans-serif"><span lang="en-GB">If
<a class="western" href="#NullInputAllowed">NullInputAllowed</a>
property is True, the user can set the date and time to null, by
pressing N key. </span></font>
</dd><p style="margin-top: 0.18cm; margin-bottom: 0cm">
<a name="DateTimePicker Editor"></a><font face="Arial, sans-serif"><b>DateTimePicker
Editor</b></font></p>
<img src="" name="Image1" align="left" width="420" height="199" border="0">
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<br>
</p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif">DateTimePicker Editor is a dialog
which provides easy way to set Date, Time, MinDate and MaxDate
properties in design time. It is invoked when DateTimePicker control
is double-clicked in form designer. It is also shown when the
ellipsis (…) button, shown in Date, Time, MinDate and MaxDate
properties in Object inspector, gets clicked.</font></p>
<p style="margin-bottom: 0.51cm"><br><br>
</p>
<p style="margin-top: 0.18cm; margin-bottom: 0cm"><font face="Arial, sans-serif"><b>Tips</b></font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><b>Q:</b> When the date/time value is
null, how to display zeros/nines in user format, no matter whether
the control is focused or not?</font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB"><b>A:</b></span></font>
<font face="Arial, sans-serif"><span lang="en-GB">Set <a class="western" href="#TextForNullDate">TextForNullDate</a>
property to empty string. If TextForNullDate is set to empty string,
then zeros/nines are displayed, same as when the control has focus.</span></font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<br>
</p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB"><b>Q:</b></span></font>
<font face="Arial, sans-serif"><span lang="en-GB">When the date/time
value is null, If empty string in <a class="western" href="#TextForNullDate">TextForNullDate</a>
property actually sets the display to zeros/nines format, how to set
the control to display nothing?</span></font></p>
<p style="margin-left: 0.84cm; margin-top: 0.18cm; margin-bottom: 0cm">
<font face="Arial, sans-serif"><span lang="en-GB"><b>A:</b></span></font>
<font face="Arial, sans-serif"><span lang="en-GB">Set <a class="western" href="#TextForNullDate">TextForNullDate</a>
property to one space character, you will get the empty display.</span></font></p>
</body>
</html>